package _spring_test._CircularReference2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: huangya
 * @Date: 2020/09/22
 * @Description:
 */
@Component
public class ClassA222Impl implements ClassA222 {

    private String a1 = "123";

    @Resource
    private ClassB222 classB222;

    public String getA1() {
        return a1;
    }

    public void setA1(String a1) {
        this.a1 = a1;
    }

    public ClassB222 getClassB222() {
        return classB222;
    }

    public void setClassB222(ClassB222 classB222) {
        this.classB222 = classB222;
    }

    @Override
    public String aaa() {
        System.out.println("aaa");
        return "aaa";
    }
}
